package com.sc.nft.admin.controller;


import com.sc.nft.service.*;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RequiredArgsConstructor
@RestController
@RequestMapping("/admin/test/")
@Api(tags = "测试")
public class TestController {
    private final EcologyPoolDaoRankConfService ecologyPoolDaoRankConfService;
    private final EcologyPoolDaoRankService ecologyPoolDaoRankService;
    private final EcologyPoolSourceDetailService ecologyPoolSourceDetailService;
    private final EcologyPoolRecordService ecologyPoolRecordService;
    private final EcologyPoolCommunityServiceRankConfService ecologyPoolCommunityServiceRankConfService;
    private final EcologyPoolCommunityServiceRankService ecologyPoolCommunityServiceRankService;
    private final EcologyPoolSourceService ecologyPoolSourceService;

    @PostMapping("excellentBrandRanking")
    @ApiOperation(value = "优秀品牌排行榜")
    public void excellentBrandRanking() {
        ecologyPoolSourceService.finishReleasingPoints();
    }
}
